class Person(object):
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def info(self):
        print('My name is {0}, age is {1}'.format(self.name, self.age))

    def __str__(self):
        return '姓名:{0},年龄:{1}'.format(self.name, self.age)


o = object()
person = Person('Cary', 31)
print(dir(o))
print(dir(person))
print(person)
